package com.example.util

import java.text.SimpleDateFormat
import java.util.Date

/**
 * @title: DateUtil
 * @projectName bigdata
 * @description: DateUtil
 * @author leali
 * @date 2022/5/14 17:49
 */
object DateUtil {
  /**
   * other way new SimpleDateFormat(format).format(System.currentTimeMillis())
   * @param format yyyyMMdd
   * @return
   */
  def getCurrentTime(format: String = "yyyy-MM-dd HH:mm:ss.SSS"): String = {
    new SimpleDateFormat(format).format(new Date())
//
  }
}
